<?php
  function alertmsg($msg){
  	      echo "<script>alert('".$msg."');</script>";
  	  	  echo "<script>history.go(-1);</script>";
  	  	  exit();
  }
  function alertmsgrtn($msg,$rtn){
          echo "<script>alert('".$msg."');</script>";
  	  	  echo "<script>window.location='".$rtn."';</script>";
  	  	  exit();
  }
  function alertmsgrtn1($msg,$rtn){
          echo "<script>alert('".$msg."');</script>";
  	  	  echo "<script>window.parent.location='".$rtn."';</script>";
  	  	  exit();
  }
  function jump($url){
  	 echo "<script>window.location='".$url."';</script>";
  	 exit();
  }
?>